package org.seedltd.upms.model.detection.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class DetectionOrderRefundForm {

    /**
     * 订单号
     */
    @NotNull(message = "订单编号不能为空，请重新进入详情页")
    private Long orderId;

    /**
     * 退款金额
     */
    private BigDecimal refundPrice;

    /**
     * 退款说明
     */
    @Length(message = "退款说明长度不能超过100个字符", max = 100)
    @NotNull(message = "退款说明不能为空，请重新进入详情页")
    private String refundReason;
}
